<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%
Date date=new Date();
Calendar cal = Calendar.getInstance();
cal.setTime(date);
String date_cn ="";
String dateStr = "";
switch(cal.get(Calendar.DAY_OF_WEEK))
{
case 1:date_cn ="日"; break;
case 2:date_cn ="一"; break;
case 3:date_cn ="二"; break;
case 4:date_cn ="三"; break;
case 5:date_cn ="四"; break;
case 6:date_cn ="五"; break;
case 7:date_cn ="六"; break;
}
dateStr = cal.get(Calendar.YEAR)+"年"+(cal.get(Calendar.MONTH)+1)+"月"+cal.get(Calendar.DAY_OF_MONTH)+
"日(星期" + date_cn + ")";
out.print(dateStr);
%>
